package objects

/**
  * Created by yang on 17-3-21.
  */
class TrajSegment() {

  var start: Point = new Point()
  var end: Point = new Point()
  var time: Long = _
  var mark: String = _

  def this(start: Point, end: Point, time: Long, mark: String) {
    this()
    this.start = start
    this.end = end
    this.mark = mark
    this.time = time
  }

  def setValue(line: TrajSegment): Unit = {
    start.x = line.start.x
    start.y = line.start.y
    end.x = line.end.x
    end.y = line.end.y
    time = line.time
  }
}
